package cn.jwcat.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2023-04-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("s_claim")
public class Claim {

	/**
	 * 申领id
	 */
	@TableId(value = "claim_id", type = IdType.AUTO)
	private Integer claimId;

	/**
	 * 物资表的外键id
	 */
	@TableField("goods_id")
	private Integer goodsId;

	/**
	 * 申请数量
	 */
	@TableField("claim_number")
	private Integer claimNumber;

	/**
	 * 用户表的外键id
	 */
	@TableField("user_id")
	private Integer userId;

	/**
	 * 申请时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 申请状态
	 */
	@TableField("status")
	private String status;

	/**
	 * 回复内容
	 */
	@TableField("reply")
	private String reply;

	/**
	 * 备注
	 */
	@TableField("remark")
	private String remark;

	/**
	 * 志愿者申请物资时的志愿者id
	 */
	@TableField("volunteer_id")
	private Integer volunteerId;


}
